﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using FileDFS.Model.Enum;
using System.ServiceModel;
/*
 * Coder:Tieria
 * WriteTime:2015.5.13
 * FileName:ThumbnailModel.cs
 * ReMark:图片上传缩略图枚举
 */
namespace FileDFS.Model
{
    //[Serializable]
    //[DataContract]
    //public class ThumbnailModel
    //{
    //    /// <summary>
    //    /// 缩略图的ID
    //    /// </summary>
    //    [DataMember]
    //    public int ThumbnailId { get; set; }
    //    /// <summary>
    //    /// 缩略图的宽度
    //    /// </summary>
    //    [DataMember]
    //    public int ThumbnailWidth { get; set; }
    //    /// <summary>
    //    /// 缩略图高度
    //    /// </summary>
    //    [DataMember]
    //    public int ThumbnailHeight { get; set; }
    //    /// <summary>
    //    /// 缩略图扩展名
    //    /// </summary>
    //    [DataMember]
    //    public ImageExtensionEnum ThumbnailExtension { get; set; }
    //    /// <summary>
    //    /// 生成缩略图的模式
    //    /// </summary>
    //    [DataMember]
    //    public ImageCutModeEnum Mode { get; set; }

    //}
    [Serializable]
    [MessageContract]
    public class ThumbnailModel
    {
        /// <summary>
        /// 缩略图的ID
        /// </summary>
        [MessageHeader]
        public int ThumbnailId { get; set; }
        /// <summary>
        /// 缩略图的宽度
        /// </summary>
        [MessageHeader]
        public int ThumbnailWidth { get; set; }
        /// <summary>
        /// 缩略图高度
        /// </summary>
        [MessageHeader]
        public int ThumbnailHeight { get; set; }
        /// <summary>
        /// 缩略图扩展名
        /// </summary>
        [MessageHeader]
        public ImageExtensionEnum ThumbnailExtension { get; set; }
        /// <summary>
        /// 生成缩略图的模式
        /// </summary>
        [MessageHeader]
        public ImageCutModeEnum Mode { get; set; }

    }
}
